<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h1>index.html</h1>
    <script>
      sessionStorage.info = JSON.stringify({ a: 1 });
      sessionStorage.username = "jack";
      sessionStorage.age = 20;
      sessionStorage.setItem("gender", "boy");

      console.log(sessionStorage);
    </script>
  </body>
</html>
